package com.aabte.design2.creational.prototype;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
@Data
@Accessors(chain = true)
public abstract class Shape {

    private int x;
    private int y;
    private String color;

    public Shape() {
    }

    public Shape(Shape shape) {
        this.x = shape.x;
        this.y = shape.y;
        this.color = shape.color;

    }

    @Override
    public abstract Shape clone();
}
